var rewardLength = window.gameJson.lottery.lotteryRewardVOs.length,
    rewardSwiper = Math.ceil(rewardLength/4),
    demoSwiper = '';
for(var i=0;i<rewardSwiper;i++) {
  demoSwiper += '<div class="swiper-slide">&nbsp;&nbsp;</div>';
}
$('.swiper-wrapper').html(demoSwiper);
var mySwiper = new Swiper('.swiper-container',{
    //其他设置
    scrollbar: {
      container : '.swiper-scrollbar',
      draggable : true,
      hide: false,
      snapOnRelease: false
  }
});
// 动态生成奖品列表
function createGooodListTest(objList) {
  var itemStr = '';
  for(var i=0;i<objList.length;i++){
     itemStr += '<div class="swiper-slide goodItem"><div class="topImgBox"><img src="'+objList[i].iconUrl+'" alt=""></div><p class="goodItemP">'+objList[i].title+'</p></div>';
  }
  return itemStr;
}
var wraperObj = document.getElementsByClassName('swiper-wrapper')[0];
wraperObj.innerHTML = createGooodListTest(window.gameJson.lottery.lotteryRewardVOs);
